package Interface.InterfaceDome006;

/**
 * ClassName:Person
 * Package:Interface.InterfaceDome006
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/25-13:42
 * @Version:v1.0
 */

    //因为我不想让外界去直接创建人的对象
    //因为直接创建顶层父类人的对象是没有意义的
    //所以写成抽象
public abstract class Person {
    private String name;
    private int age;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
